/**
 * 项目示例-列表表头
 * Date 2023-5-25 09:33:56
 * 可选参数可参考：https://element-plus.org/zh-CN/component/table.html#table-column-属性
 */

export const visualColumns = [
  { type: "index", label: "序号", width: 80, align: "center" },
  {
    prop: "eqptCode",
    label: "设备编号",
    sortable: "custom",
    align: "center",
    ellipsis: true,
    width: 110,
    formatter: function (row: any, column: any, cellValue: any) {
      if (cellValue) {
        return cellValue;
      } else {
        return "-";
      }
    },
  },
  {
    prop: "eqptName",
    label: "设备名称",
    align: "center",
    ellipsis: true,
    formatter: function (row: any, column: any, cellValue: any) {
      if (cellValue) {
        return cellValue;
      } else {
        return "-";
      }
    },
  },
  {
    prop: "typeName",
    label: "设备类型",
    align: "center",
    ellipsis: true,
    formatter: function (row: any, column: any, cellValue: any) {
      if (cellValue) {
        return cellValue;
      } else {
        return "-";
      }
    },
  },
  {
    prop: "eqptModel",
    label: "设备型号",
    align: "center",
    ellipsis: true,
    formatter: function (row: any, column: any, cellValue: any) {
      if (cellValue) {
        return cellValue;
      } else {
        return "-";
      }
    },
  },
  {
    prop: "ownerName",
    label: "归属单位",
    align: "center",
    ellipsis: true,
    formatter: function (row: any, column: any, cellValue: any) {
      if (cellValue) {
        return cellValue;
      } else {
        return "-";
      }
    },
  },
  {
    prop: "status",
    label: "状态",
    sortable: "custom",
    align: "center",
    ellipsis: true,
  },
];
